//
//  RootClassOfDoTextChoiceButton.m
//  __PRODUCTNAME__
//
//  Created by li cheng on 16/09/07
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "RootClassOfDoTextChoiceButton.h"
#import "DataOfDoTestChoiceButton.h"

@implementation RootClassOfDoTextChoiceButton

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [DataOfDoTestChoiceButton class]};
}

- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray<DataOfDoTestChoiceButton *> * mArrayOfDataOfDoTestChoiceButton = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            DataOfDoTestChoiceButton *dataOfDoTestChoiceButton = [DataOfDoTestChoiceButton modelDic:dic];
            [mArrayOfDataOfDoTestChoiceButton addObject:dataOfDoTestChoiceButton];
        }
        _data = mArrayOfDataOfDoTestChoiceButton;
    }
}
@end
